import {Object3D, Scene} from "three";
import type {Loader} from "../Loder.ts";
import {ModelInstanceStore} from "../ModelInstanceStore.ts";

export class Model extends Object3D{
    modelName: string
    scene?: Scene
    updateEnable: boolean
    modelStore?: ModelInstanceStore
    layer: number[] = []
    constructor(name: string) {
        super()
        this.modelName = name
    }

    setScene(scene: Scene) {
        this.scene = scene
    }

    setPosition(x: number, y: number, z: number) {
        this.scene?.position.set(x,y,z)
    }

    update(delta: number) {
        // 什么也不做
    }

}